#
#  elksip - a multi-platform Sip Phone Server
#
#  Copyright 2011-2013 Elksip.
#
CC = gcc

SUBDIRS=lib db src um

all: 
	@set -e; \
	for i in $(SUBDIRS); \
	do $(MAKE) $(MFLAGS) -C $$i; done
	@echo "        please use make check!  for unit test"

clean:
	@for i in $(SUBDIRS); \
	do $(MAKE) $(MFLAGS) -C $$i clean; done

elk: 
	@set -e; \
	for i in lib ; \
	do $(MAKE) $(MFLAGS) -C $$i test; done
	
check:elk
	 ./lib/unit_test ./test/rfc3261/*.txt
	 ./lib/anomaly_test ./test/anomaly/*.txt
	
	
